﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ShoppingApp
{
    public partial class Details : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //string str = (string)ViewState["strSql"];
            //Label1.Text = (string)Session["strSql"];

            Label1.Text = "You have chosen following users";
            
            if (Session["myList"] != null)
            {
                List<string> myList = (List<string>)Session["myList"];
                foreach (string elem in myList)
                {
                    //Label1.Text += elem;
                    TextBox1.Text += elem + Environment.NewLine;
                }
            }
        }
    }
}